/**
 * fileName:com.zimo.web.entity.User.java
 * projectName:Zimo
 */
package com.zimo.web.entity;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;

/**
 * 用户对象
 * 
 * @author sg.z/2013-12-16/下午5:24:58
 */
public class User {
	/**
	 * id
	 */
	private Integer id;
	/**
	 * 用户名
	 */
	@NotNull(message="用户名不能为空")
	@Size(min=4,max=32,message="用户名长度在4~32之间")
	private String userName;
	/**
	 * 密码
	 */
	@NotNull(message="密码不能为空")
	@Size(min=6,max=10,message="密码长度在6个到10之间")
	private String userPass;
	/**
	 * 邮箱
	 */
	@Email(message="邮件格式不对")
	private String userEmail;
	/**
	 * 是否是管理员
	 */
	private String isAdmin;
	/**
	 * 头像地址
	 */
	private String headUrl;
	
	/**
	 * 重复密码
	 */
	@NotNull(message="密码不能为空")
	@Size(min=6,max=10,message="密码长度不对")
	private String rePass;

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName
	 *            the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the userPass
	 */
	public String getUserPass() {
		return userPass;
	}

	/**
	 * @param userPass
	 *            the userPass to set
	 */
	public void setUserPass(String userPass) {
		this.userPass = userPass;
	}

	

	/**
	 * @return the userEmail
	 */
	public String getUserEmail() {
		return userEmail;
	}

	/**
	 * @param userEmail the userEmail to set
	 */
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}

	/**
	 * @return the isAdmin
	 */
	public String getIsAdmin() {
		return isAdmin;
	}

	/**
	 * @param isAdmin
	 *            the isAdmin to set
	 */
	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

	/**
	 * @return the headUrl
	 */
	public String getHeadUrl() {
		return headUrl;
	}

	/**
	 * @param headUrl
	 *            the headUrl to set
	 */
	public void setHeadUrl(String headUrl) {
		this.headUrl = headUrl;
	}

	/**
	 * @return the rePass
	 */
	public String getRePass() {
		return rePass;
	}

	/**
	 * @param rePass the rePass to set
	 */
	public void setRePass(String rePass) {
		this.rePass = rePass;
	}

}
